# -*- coding: utf-8 -*-

###############################################################################
# This file is a Django settings file specific to production environment.
# The environment variable DJANGO_SETTINGS_MODULE, sets in wsgi python file,
# must point to this file.
###############################################################################
from settings_common import *

###############################################################################
# SECTION 1:
#     This section overwrites Django's default settings.
###############################################################################
#
# DO NOT MODIFY THIS SETTING UNLESS WHAT YOU WANT IS DIGGING THE BUG
# UNDER PRODUCTION ENVIRONMENT.
#
DEBUG = False

#
# database connection setting.
#
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'tyqpfe',
        'USER': 'tyqpfe',
        'PASSWORD': 'tyqpfe.12345',
        'HOST': '',
        'PORT': '',
    }
}

#
# This setting have to match with apache's WSGIScriptAlias directive.
# If the alias sets to, say, '/tyqpfe', this value is just what you want.
#
#STATIC_URL = '/tyqpfe/static/'

#
# Django session behavior.
# Set this value to False if you don't want users have to login
# every time after he/she closing the browser.
#
SESSION_EXPIRE_AT_BROWSER_CLOSE = True

#
# How long the user sill be logged out automatically, in seconds,
# if he/she doesn't send any request.
#
SESSION_COOKIE_AGE = 300

#
# DO NOT CHANGE THIS SETTINGS.
#
SESSION_COOKIE_NAME = 'tyqpfe'

###############################################################################
# SECTION 2:
#     This section overwrites TYQPFE's custom settings.
###############################################################################
